#pragma once
#include "afxwin.h"
#include "Playlist.h"
#include "playerctrl.h"

class CPlaylistBox :
	public CListBox
{
public:
	CPlayerctrl *m_ActiveXPlayer;
	CPlaylist m_PlayListFunc;

	CPlaylistBox(void);
	~CPlaylistBox(void);

	void AddFile(CString FileName);

	DECLARE_MESSAGE_MAP()
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDropFiles(HDROP hDropInfo);
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	virtual int CompareItem(LPCOMPAREITEMSTRUCT lpCompareItemStruct);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);

	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
};

